package cn.itcast.service;

import cn.itcast.domain.Permission;
import cn.itcast.entity.PageResult;
import cn.itcast.entity.QueryPageBean;

import java.util.List;

public interface PermissionService {
    void insertPermission(Permission permission);

    Permission findPermissionById(Integer id);

    PageResult findPermissionByPage(QueryPageBean queryPageBean);

    void deletePermission(Integer id);

    void updatePermission(Permission permission);

    List<Permission> findAllPermissions();
}
